﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("featureService", function (httpService) {
        var methods = {
            "get": function (params) {
                return httpService.get("/admin/manage/getfeature", params);
            },
            "gets": function (params) {
                return httpService.get("/admin/manage/getfeatures", params);
            },
            "put": function (params) {
                return httpService.put("/admin/manage/putfeature", params);
            },
            "post": function (params) {
                return httpService.post("/admin/manage/postfeature", params);
            },
            "delete": function (id) {
                return httpService.delete("/admin/manage/deletefeature/" + id);
            }
        }
        return methods;
    });
});